package com.ruoyi.electronicFence.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.config.DbInterfaceConfig;
import com.ruoyi.electronicFence.domain.vo.ReqVo;
import com.ruoyi.electronicFence.utils.HttpUtil;
import com.ruoyi.electronicFence.utils.IdUtils;
import com.ruoyi.electronicFence.domain.A2ROfEFIntrusion;
import com.ruoyi.electronicFence.service.A2ROfEFIntrusionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【J_KY_S_DZWLCRJLB(AIS/ADS-B电子围栏闯入记录表)】的数据库操作Service实现
* @createDate 2025-02-13 14:00:07
*/
@Service
public class A2ROfEFIntrusionServiceImpl
    implements A2ROfEFIntrusionService{
    @Autowired
    private DbInterfaceConfig dbInterfaceConfig;

    @Override
    public void saveOne(A2ROfEFIntrusion a2ROfEFIntrusion) {
        StringBuilder sb = new StringBuilder("");
        sb.append("INSERT INTO J_KY_S_DZWLCRJLB  ( id,   dwwybh,   rwwibh,   zt )  VALUES  (");
        sb.append(IdUtils.generateId()).append(",")
                .append(a2ROfEFIntrusion.getDwwybh()).append(",")
                .append(a2ROfEFIntrusion.getRwwibh()).append(",")
                .append(a2ROfEFIntrusion.getZt())
                .append(")");
        HttpUtil.create(dbInterfaceConfig, new ReqVo(sb.toString()));
    }
}




